package com.sh.dc.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 求解器表
 * </p>
 *
 * @author zhenlan
 * @since 2024-07-15
 */
@Data
  @TableName("t_solver")
public class Solver implements Serializable {

    private static final long serialVersionUID = 1L;


      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

    @TableField("name")
    private String name;

    @TableField("name_en")
    private String nameEn;

    @TableField("description")
    private String description;

      /**
     * 制品源id
     */
      @TableField("product_source_id")
    private Long productSourceId;

    @TableField("product_source_name")
    private String productSourceName;

    @TableField("product")
    private String product;

    @TableField("cmd")
    private String cmd;

    @TableField("file_params")
    private String fileParams;

    @TableField("cmd_params")
    private String cmdParams;

    @TableField("cpu_limit")
    private Integer cpuLimit;

    @TableField("memory_limit")
    private Integer memoryLimit;

      /**
     * 环境变量
     */
      @TableField("envs")
    private String envs;

    @TableLogic
    @TableField("deleted")
    private Integer deleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private String updateBy;

}
